mobs:register_mob('farm_mobs:german_shepherd', {
   type = 'animal',
   passive = false,
   attack_type = 'dogfight',
   group_attack = true,
   reach = 3,
   damage = 10,
   damage_max = 20,
   damage_chance = 150,
   hp_min = 50,
   hp_max = 150,
   armor = 75,
   collisionbox = {-0.3, -0.01, -0.3, 0.3, .7, 0.3},
   visual = 'mesh',
   visual_size = {x=4,y=4},
   rotate = 180,
   mesh = 'farm_mobs_german_shepherd.b3d',
   textures = {
      {'farm_mobs_german_shepherd.png'},
   },
   makes_footstep_sound = true,
   sounds = {
      random = 'farm_mobs_dog',
      attack = 'farm_mobs_dog',
   },
   walk_velocity = 2,
   run_velocity = 5,
   jump = true,
   drops = {
      {name = 'mobs:meat_raw', chance = 1, min = 1, max = 3},
   },
   water_damage = 0,
   lava_damage = 5,
   light_damage = 0,
   animation = {
      speed_normal = 40,
      speed_run = 30,
      stand_speed = 7,
      stand_start = 75,
      stand_end = 95,
      stand1_start = 100,
      stand1_end = 130,
      walk_start = 135,
      walk_end = 195,
      run_start = 135,
      run_end = 195,
      punch_start = 200,
      punch_end = 250,
      sit_start = 0,
      sit_end = 20,
   },
--   follow = 'mobs:meat_raw',
   view_range = 7,
   fear_height = 2,
--[[   on_rightclick = function(self, clicker)
      self.order = 'stand'
      --mobs:set_velocity(self, 0)
      self.object:set_animation({x = 0, y = 20}, 12, 0, false)
      if mobs:feed_tame(self, clicker, 8, true, true) then
         return
      end
      mobs:capture_mob(self, clicker, 0, 5, 60, false, nil)
   end,
--]]
})

mobs:spawn({
   name = 'farm_mobs:german_shepherd',
   nodes = {'default:dirt_with_coniferous_litter'},
   min_height = -15,
   max_height = 300,
   interval = 100,
   chance = 8000,
   active_object_count = 3,
})

mobs:register_egg("farm_mobs:german_shepherd", "German Shepherd", "default_grass.png", 1)
